package com.pcbly.web.business.mail;

import java.util.List;

import com.pcbly.web.bean.mail.UserReceiveMainBean;
import com.pcbly.web.business.BaseServiceImp;
import com.pcbly.web.components.hibernate.support.Page;
import com.pcbly.web.persistence.mail.UserReceiveMainDao;

public class UserReceiveMainServiceImp extends
		BaseServiceImp<UserReceiveMainBean> implements UserReceiveMainService {
	protected UserReceiveMainDao userReceiveMainDao;
	public UserReceiveMainServiceImp(){
		super();
	}
	public void setUserReceiveMainDao(UserReceiveMainDao userReceiveMainDao) {
		this.userReceiveMainDao = userReceiveMainDao;
	}
	@Override
	public int saveList(List<UserReceiveMainBean> list,String userName) throws Exception {
		// TODO Auto-generated method stub
		return userReceiveMainDao.saveList(list,userName);
	}
	@Override
	public Page<UserReceiveMainBean> findUserReceiveMainBeanByCond(
			UserReceiveMainBean bean, Page<UserReceiveMainBean> page,
			String orderByName, boolean asc) throws Exception {
		// TODO Auto-generated method stub
		return userReceiveMainDao.findUserReceiveMainBeanByCond(bean, page, orderByName, asc);
	}
	@Override
	public UserReceiveMainBean getUserReceiveMainBeanById(String id)
			throws Exception {
		// TODO Auto-generated method stub
		return userReceiveMainDao.get(id);
	}
	@Override
	public void removeComplateUserReceiveMainBeanById(String id)
			throws Exception {
		// TODO Auto-generated method stub
		userReceiveMainDao.removeComplateUserReceiveMainBeanById(id);
	}
	@Override
	public void removeUserReceiveMainBeanById(String id) throws Exception {
		// TODO Auto-generated method stub
		userReceiveMainDao.removeUserReceiveMainBeanById(id);
	}
	
}
